DEF_PROJECT=../../..
include $(DEF_PROJECT)/scripts/main.mk
name=openssl
version=1.0.1c
prefix=/usr
destdir=$(DIR_SYSROOT)
deps+=zlib
extdeps=eglibc-tools gcc-tools binutils-tools linux-header-tools

DL_SERV=http
DL_HOST=www.openssl.org
DL_PATH=source
DL_SUFFIX=tar.gz

cdefs+=CC=i686-redhat-linux-gnu-gcc
cdefs+=RANLIB=i686-redhat-linux-gnu-ranlib

cflags+=linux-generic32
cflags+=--openssldir=/etc/ssl
cflags+=shared
cflags+=zlib

mflags+=-j1

iflags+=-j1 INSTALL_PREFIX=$(destdir)

pre-build:
	cd $<;$(cdefs) ./Configure $(cflags)
